import {Route} from "react-router-dom"
import AuthRoute from "../../components/AuthRoute"
import Index from "./Index"
// 考核模块
import Work from "./assess/work/Index"
import Assesst from "./assess/assesst/Index"
import Perform from "./assess/perform/Index"
// 员工模块
import Depart from "./emp/depart/Index"
import Employee from "./emp/employee/Index"
import Position from "./emp/position/Index"

const routes=[
    {
        name:'index',
        path:'/main/index',
        component:Index,
        key:"index"
    },
    {
        name:'work',
        path:'/main/work',
        component:Work,
        key:"work"
    },
    {
        name:'assesst',
        path:'/main/assesst',
        component:Assesst,
        key:"assesst"
    },
    {
        name:'perform',
        path:'/main/perform',
        component:Perform,
        key:"perform"
    },
    {
        name:'depart',
        path:'/main/depart',
        component:Depart,
        key:"depart"
    },
    {
        name:'employee',
        path:'/main/employee',
        component:Employee,
        key:"employee"
    },
    {
        name:'position',
        path:'/main/position',
        component:Position,
        key:"position"
    }


]

export default routes.map((v,k)=><AuthRoute {...v} />)